package cn.iocoder.yudao.module.system.dal.dataobject.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName system_customer_service
 */
@TableName(value ="system_customer_service")
@Data
public class SystemCustomerService implements Serializable {
    /**
     * 客服编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 客服性别
     */
    private Integer gender;

    /**
     * 状态（0在线，1不在线）
     */
    private Integer status;

    /**
     * 在线状态（0在线，1离线,2隐藏）
     */
    private Integer online;

    /**
     * 客服名称
     */
    private String name;

    /**
     * 客服出生日期
     */
    private Date birthDate;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 居住地址
     */
    private String address;

    /**
     * 入职日期
     */
    private Date hireDate;

    /**
     * 所属平台或商家
     */
    private Long parentId;

    /**
     * 正在服务客户数量
     */
    private Integer serviceNumber;

    /**
     * 工作经验
     */
    private String workExperience;

    /**
     * 排班表
     */
    private String shiftSchedule;

    /**
     * 客户反馈
     */
    private String customerFeedback;

    /**
     * 绩效评分
     */
    private BigDecimal performanceRating;

    /**
     * 奖惩记录
     */
    private String rewardsAndPenalties;

    /**
     * 备注
     */
    private String remarks;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SystemCustomerService other = (SystemCustomerService) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getBirthDate() == null ? other.getBirthDate() == null : this.getBirthDate().equals(other.getBirthDate()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getHireDate() == null ? other.getHireDate() == null : this.getHireDate().equals(other.getHireDate()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
            && (this.getWorkExperience() == null ? other.getWorkExperience() == null : this.getWorkExperience().equals(other.getWorkExperience()))
            && (this.getShiftSchedule() == null ? other.getShiftSchedule() == null : this.getShiftSchedule().equals(other.getShiftSchedule()))
            && (this.getCustomerFeedback() == null ? other.getCustomerFeedback() == null : this.getCustomerFeedback().equals(other.getCustomerFeedback()))
            && (this.getPerformanceRating() == null ? other.getPerformanceRating() == null : this.getPerformanceRating().equals(other.getPerformanceRating()))
            && (this.getRewardsAndPenalties() == null ? other.getRewardsAndPenalties() == null : this.getRewardsAndPenalties().equals(other.getRewardsAndPenalties()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getBirthDate() == null) ? 0 : getBirthDate().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getHireDate() == null) ? 0 : getHireDate().hashCode());
        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
        result = prime * result + ((getWorkExperience() == null) ? 0 : getWorkExperience().hashCode());
        result = prime * result + ((getShiftSchedule() == null) ? 0 : getShiftSchedule().hashCode());
        result = prime * result + ((getCustomerFeedback() == null) ? 0 : getCustomerFeedback().hashCode());
        result = prime * result + ((getPerformanceRating() == null) ? 0 : getPerformanceRating().hashCode());
        result = prime * result + ((getRewardsAndPenalties() == null) ? 0 : getRewardsAndPenalties().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gender=").append(gender);
        sb.append(", status=").append(status);
        sb.append(", name=").append(name);
        sb.append(", birth_date=").append(birthDate);
        sb.append(", phone=").append(phone);
        sb.append(", email=").append(email);
        sb.append(", address=").append(address);
        sb.append(", hire_date=").append(hireDate);
        sb.append(", parent_id=").append(parentId);
        sb.append(", work_experience=").append(workExperience);
        sb.append(", shift_schedule=").append(shiftSchedule);
        sb.append(", customer_feedback=").append(customerFeedback);
        sb.append(", performance_rating=").append(performanceRating);
        sb.append(", rewards_and_penalties=").append(rewardsAndPenalties);
        sb.append(", remarks=").append(remarks);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}